﻿using System.Collections.Generic;
using netCoreStudy.Attr.QueryAttr;
using netCoreStudy.Entities;
using netCoreStudy.Entities.Base;
using netCoreStudy.Enum;

namespace netCoreStudy.Dto.User
{
	public class MenuDto : BaseDto
	{
		/// <summary>
		/// 父Id 
		/// </summary>
		public long PId { get; set; }

		/// <summary>
		/// 菜单名称
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// 路由地址 
		/// </summary>
		public string Path { get; set; }

		/// <summary>
		/// 按钮事件 
		/// </summary>
		public string Func { get; set; }
		/// <summary>
		/// 菜单描述 
		/// </summary>
		public string Desc { get; set; }
		/// <summary>
		/// 图标名称   
		/// </summary>
		public string Icon { get; set; }

		/// <summary>
		/// 排序 
		/// </summary>
		public int OrderSort { get; set; }

		/// <summary>
		/// 菜单类型 
		/// </summary>
		public MenuType MenuType { get; set; }
		
		public List<MenuDto> Children { get; set; } = new List<MenuDto>();

	}
}